package com.example.emos.wx.config;


import com.rabbitmq.client.ConnectionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 曹杰
 * @version 1.0
 */
@Configuration
public class RabbitMQConfig {
    @Bean
    public ConnectionFactory getFactory(){
        ConnectionFactory factory = new ConnectionFactory();
        factory.setHost("39.103.162.109"); // 主机IP地址
        factory.setPort(5672); // RabbitMQ端口号
        return factory;
    }
}
